import { Provider } from "react-redux";
import { HashRouter } from "react-router-dom";
import { PersistGate } from 'redux-persist/integration/react';
import store, { persisstore } from "./store";
import Router from "./routes";
import "./App.css";
import React from "react";

function App() {
    return (
        <Provider store={store}>
            <PersistGate persistor={persisstore}>
                <HashRouter>
                    <Router />
                </HashRouter>
            </PersistGate>
        </Provider>
    );
}

export default App;
